import request from '@/utils/request'

export const getUserChannels = () => request.get('/v1_0/user/channels')

export const getAllChannels = () => request.get('/v1_0/channels')

export const addChannel = data => request.patch('/v1_0/user/channels', data)

export const delChannel = target => request.delete(`/v1_0/user/channels/${target}`)
